package pro.spring.inter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pro.spring.model.Images;

public interface ImagesMapper {
    int deleteByPrimaryKey(Integer imId);

    int insert(Images record);

    int insertSelective(Images record);

    Images selectByPrimaryKey(Integer imId);

    int updateByPrimaryKeySelective(Images record);

    int updateByPrimaryKey(Images record);
    
    //得到总条数
    Integer selectCount();
    
    //得到最新id
    Integer selectCountNewId();
    
    //分页查询
    List<Images> selectListPage(@Param("offset")Integer offset,@Param("pagesize")Integer pagesize);
}